package com.htudata.transctAlarm.mapper;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

import com.htudata.alarm.pojo.po.AlarmLevelPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface TransctAlarmMapper {
  List<AlarmLevelPO> selectAlarmLevelList(JSONObject paramJSONObject);
  
  JSONArray selectNodeProblemCountByFlowId(JSONObject paramJSONObject);
  
  JSONArray selectNodeAlarmCountByFlowId(JSONObject paramJSONObject);
  
  JSONArray selectAlarmHistoryByTriggerId(@Param("triggerId") long paramLong1, @Param("startTime") long paramLong2, @Param("endTime") long paramLong3);
  
  int updateAlarmStatusByAlarmId(@Param("alarmId") long paramLong1, @Param("status") int paramInt, @Param("recoverTime") long paramLong2);
  
  JSONArray selectEffectiveLocalAlarms();
  
  JSONArray selectNodeProblemCountByVirtualStation(JSONObject paramJSONObject);
  
  JSONArray selectNodeAlarmCountByVirtualStation(JSONObject paramJSONObject);
  
  JSONArray selectNodeProblemCountByLevel(JSONObject paramJSONObject);
  
  JSONArray selectNodeAlarmCountByLevel(JSONObject paramJSONObject);
  
  int updateTriggerStatus(@Param("isTriggered") int paramInt, @Param("alarmId") long paramLong);
}
